package com.lj.shop.system;

import java.util.ArrayList;
import java.util.List;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;

@RequestMapping("sys")
@RestController
public class MenuController {


    @GetMapping("menu/nav")
    public ResponseEntity<JSONObject>  menuNav(){
        List<Menu> menuList = new ArrayList();
        menuList.add(Menu.build());
        JSONObject json = new JSONObject();
        json.put("menuList", menuList);
        return ResponseEntity.ok(json);
    }
}
